package com.sy.simpleegg.platform.kkb.network.interceptor

import android.util.Log
import okhttp3.Interceptor
import okhttp3.Response

/**
 * @author sy
 * @date 2024/10/11 15:17
 * @desc
 */
class TimerResponseInterceptor: Interceptor {
    private val TAG = "ResponseInterceptor"
    override fun intercept(chain: Interceptor.Chain): Response {
        val requestTime = System.currentTimeMillis()
        val response = chain.proceed(chain.request())
        Log.d("ResponseInterceptor", "requestTime=" + (System.currentTimeMillis() - requestTime))
        return response
    }
}